﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Local Storage Demo</title>
    <script src="localStorageOperations.js"></script>
</head>
<body>
    <script>
        console.log("Add records to the localStorage");
        highScore.saveScore("Adrian", 5000);
        highScore.saveScore("Pesho", 3200);
        highScore.saveScore("Gosho", 5000);
        highScore.saveScore("Adrian", 600);
        highScore.saveScore("Serafim", 7000);
        highScore.saveScore("Nakov", 10000);
        highScore.saveScore("Adrian", 10001);
        highScore.saveScore("Adrian", 600);

        console.log(localStorage);

        var top5 = highScore.getTopPlayers(5);
        console.log("top 5 players array");
        console.log(top5);
    </script>
</body>
</html>
